<? if(!defined('IN_TIPASK')) exit('Access Denied'); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"><? $user=$this->user; $setting=$this->setting; ?><html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>Tipask's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?=TIPASK_CHARSET?>">
<link media="all" type="text/css" href="css/common/admin/admincp.css" rel="stylesheet"/>

</head>

<body>

<div id="append">
</div>

<div class="container"><? if(isset($message)) { $type=isset($type)?$type:'correctmsg';  ?><div class="<?=$type?>"><p><?=$message?></p></div><? } ?><div class="mainbox nomargin">
<form action="index.php?admin_setting/time<?=$setting['seo_suffix']?>" method="post">
<table class="opt">
<tr>
<th colspan="2">时区设置:</th>
</tr>
<tr>
<td>
<select name="time_offset" >
<? if(is_array($timeoffset)) { foreach($timeoffset as $key => $value) { ?>
<option value="<?=$key?>" <? if($key==$setting['time_offset']) { ?> selected <? } ?> ><?=$value?></option>
<? } } ?>
</select>
</td>
<td>设置网站的的默认时区</td>
</tr>

<tr>
<th colspan="2">本地时间与服务器的时间差:</th>
</tr>
<tr>
<td><input class="txt" value="<?=$setting['time_diff']?>" name="time_diff"></td>
<td>时间差(分钟)，例如本地 8:00 服务器 8:10，则填写-10</td>
</tr>	

<tr>
<th colspan="2">日期格式:</th>
</tr>
<tr>
<td>
                  	<select name="date_format" >
                  		<option value=""  <? if($setting['date_format']=="") { ?> selected <? } ?>  ><? echo date("Y-n-j"); ?>  Y-n-j</option>
                  		<option value="Y/m/d" <? if($setting['date_format']=="Y/m/d") { ?>selected<? } ?>  ><? echo date("Y/m/d"); ?> (Y/M/D)</option>
<option value="m/d/Y" <? if($setting['date_format']=="m/d/Y") { ?>selected<? } ?>  ><? echo date("m/d/Y"); ?> (M/D/Y)</option>
<option value="d/m/Y" <? if($setting['date_format']=="d/m/Y") { ?>selected<? } ?>><? echo date("d/m/Y"); ?> (D/M/Y)</option>
<option value="m/d" <? if($setting['date_format']=="m/d") { ?>selected<? } ?>><? echo date("m/d"); ?> (M/D)</option>
<option value="d/m" <? if($setting['date_format']=="d/m") { ?>selected<? } ?>><? echo date("d/m"); ?> (D/M)</option>
<option value="Y.m.d" <? if($setting['date_format']=="Y.m.d") { ?>selected<? } ?>><? echo date("Y.m.d"); ?> (Y.M.D)</option>
<option value="m.d.Y" <? if($setting['date_format']=="m.d.Y") { ?>selected<? } ?>><? echo date("m.d.Y"); ?> (M.D.Y)</option>
<option value="d.m.Y" <? if($setting['date_format']=="d.m.Y") { ?>selected<? } ?>><? echo date("d.m.Y"); ?> (D.M.Y)</option>
<option value="m.d" <? if($setting['date_format']=="m.d") { ?>selected<? } ?>><? echo date("m.d"); ?> (M.D)</option>
<option value="d.m" <? if($setting['date_format']=="d.m") { ?>selected<? } ?>><? echo date("d.m"); ?> (D.M)</option>
<option value="Y-m-d" <? if($setting['date_format']=="Y-m-d") { ?>selected<? } ?>><? echo date("Y-m-d"); ?> (Y-M-D)</option>
<option value="m-d-Y" <? if($setting['date_format']=="m-d-Y") { ?>selected<? } ?>><? echo date("m-d-Y"); ?> (M-D-Y)</option>
<option value="d-m-Y" <? if($setting['date_format']=="d-m-Y") { ?>selected<? } ?>><? echo date("d-m-Y"); ?> (D-M-Y)</option>
<option value="m-d" <? if($setting['date_format']=="m-d") { ?>selected<? } ?>><? echo date("m-d"); ?>(M-D)</option>
<option value="d-m" <? if($setting['date_format']=="d-m") { ?>selected<? } ?>><? echo date("d-m"); ?> (D-M)</option>
<option value="M d Y" <? if($setting['date_format']=="M d Y") { ?>selected<? } ?>><? echo date("M d Y"); ?></option>
<option value="d M Y" <? if($setting['date_format']=="d M Y") { ?>selected<? } ?>><? echo date("d M Y"); ?></option>
<option value="M d" <? if($setting['date_format']=="M d") { ?>selected<? } ?>><? echo date("M d"); ?></option>
<option value="d M" <? if($setting['date_format']=="d M") { ?>selected<? } ?>><? echo date("d M"); ?></option>
<option value="jS F, Y" <? if($setting['date_format']=="jS F, Y") { ?>selected<? } ?>><? echo date("jS F, Y"); ?></option>
<option value="l, jS F, Y" <? if($setting['date_format']=="l, jS F, Y") { ?>selected<? } ?>><? echo date("l, jS F, Y"); ?></option>
<option value="jS F" <? if($setting['date_format']=="jS F") { ?>selected<? } ?>><? echo date("jS F"); ?></option>
<option value="l, jS F" <? if($setting['date_format']=="l, jS F") { ?>selected<? } ?>><? echo date("l, jS F"); ?></option>
                  	</select>
</td>
<td>选择合适的日期格式显示</td>
</tr>

<tr>
<th colspan="2">时间格式:</th>
</tr>
<tr>
<td>
                  	<select name="time_format" >
                  		<option value="" <? if($setting['time_format']=="") { ?>selected<? } ?>><? echo date("H:i"); ?>  H:i</option>
                  		<option value="H:i" <? if($setting['time_format']=="H:i") { ?>selected<? } ?>><? echo date("H:i"); ?></option>
<option value="H:i:s" <? if($setting['time_format']=="H:i:s") { ?>selected<? } ?>><? echo date("H:i:s"); ?></option>
<option value="g:i a" <? if($setting['time_format']=="g:i a") { ?>selected<? } ?>><? echo date("g:i a"); ?></option>
<option value="g:i A" <? if($setting['time_format']=="g:i A") { ?>selected<? } ?>><? echo date("g:i A"); ?></option>
                  	</select>
</td>
<td>选择合适的时间格式显示</td>
</tr>
</table>
<div class="opt">
<input class="btn" tabindex="3" type="submit" value=" 提 交 " name="submit"></div>
</form>
</div>
</div>

</body>

</html>
